<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
    这是一个关于我们<br>
    <input type="text" id="un"><br>
    <input type="text" id="pw"><br>
    <input type="button" id="btn" value="登录">
    <span></span>
</body>
<script src="./jquery.js"></script>
<script>
    $("#btn").click(function(){
        $.ajax({
            url:"http://localhost:81/api",
            data:{
                type:"login",
                username:$("#un").val(),
                password:$("#pw").val()
            },
            success:(res)=>{
                console.log(res)
            }
        })
    })
</script>
</html>